<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-3.5.1.js"></script>
</head>
<body>
<iframe src="lianxi1/index.html" />
<input type="text" id="user">
<script type="text/javascript">
    $(function () {
        $("#user").keyup(function (e) {
            console.log(e.keyCode)
            if(e.keyCode == 13){
                alert("搜索")
            }
            console.log("释放:",this.value);
        })

    })

</script>
</body>
</html>